package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Tag;
import java.util.List;

public interface TagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Tag entity);

    Tag selectByPrimaryKey(Long id);

    List<Tag> selectAll();

    int updateByPrimaryKey(Tag entity);

    /**
     * 根据大攻略查出 数量前6个的标签
     * @param strategyId
     * @return
     */
    List<Tag> selectHotTagsBystrategyId(Long strategyId);
}